#ifndef _ZBLD_C20_H
#define _ZBLD_C20_H

#include "../common/common_motor.h"

struct zbld_motor {
    char bus_port;
    char sid;
    int baudrate;

    char run;
    motor_direction_t dir;
    short rpm;
    short current;
};


// struct zbld_motor zbld_motor_object = {
//     .dir = motor_forward,
//     .bus_port = 1,
//     .sid = 1,
//     .rpm = 3000,
// };


extern void zbld_motor_constructor(struct xp_motor *motor, struct zbld_motor *dev, unsigned char *name);
extern int zbld_current_get(xp_motor_t *motor, short *current);

#endif
